package com.ruoyi.buy.domain.entity.PO;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 人员品牌关联对象 buy_user_brand
 * 
 * @author ruoyi
 * @date 2024-06-14
 */
public class BuyUserBrand extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long userId;

    /** 0不可用，1可用 */
    @Excel(name = "0不可用，1可用")
    private String status;

    /** 0 永久，1临时 */
    @Excel(name = "0 永久，1临时")
    private String isTemporary;

    /** 有效日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "有效日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date temporaryDate;

    /** 品牌 */
    @Excel(name = "品牌")
    private String vBrandName;

    private String isTemporaryOld;

    private Date temporaryDateOld;

    private String vBrandNameOld;

    public Date getTemporaryDateOld() {
        return temporaryDateOld;
    }

    public void setTemporaryDateOld(Date temporaryDateOld) {
        this.temporaryDateOld = temporaryDateOld;
    }

    public String getIsTemporaryOld() {
        return isTemporaryOld;
    }

    public void setIsTemporaryOld(String isTemporaryOld) {
        this.isTemporaryOld = isTemporaryOld;
    }

    public String getvBrandNameOld() {
        return vBrandNameOld;
    }

    public void setvBrandNameOld(String vBrandNameOld) {
        this.vBrandNameOld = vBrandNameOld;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setIsTemporary(String isTemporary) 
    {
        this.isTemporary = isTemporary;
    }

    public String getIsTemporary() 
    {
        return isTemporary;
    }
    public void setTemporaryDate(Date temporaryDate) 
    {
        this.temporaryDate = temporaryDate;
    }

    public Date getTemporaryDate() 
    {
        return temporaryDate;
    }
    public void setvBrandName(String vBrandName) 
    {
        this.vBrandName = vBrandName;
    }

    public String getvBrandName() 
    {
        return vBrandName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("status", getStatus())
            .append("isTemporary", getIsTemporary())
            .append("temporaryDate", getTemporaryDate())
            .append("vBrandName", getvBrandName())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
